/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

/**
 *
 * @author wudihua
 */
public class FhirMainGui extends javax.swing.JFrame {

    /**
     * Creates new form FhirMainGui
     */
    public FhirMainGui() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jRadioButton_patient = new javax.swing.JRadioButton();
        jRadioButton_encounter = new javax.swing.JRadioButton();
        jRadioButton_produreRequest = new javax.swing.JRadioButton();
        jRadioButton_fhirBG = new javax.swing.JRadioButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        buttonGroup1.add(jRadioButton_patient);
        jRadioButton_patient.setText("患者(Patient)");
        jRadioButton_patient.setToolTipText("患者(Patient)");
        jRadioButton_patient.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jRadioButton_patientStateChanged(evt);
            }
        });
        jRadioButton_patient.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton_patientActionPerformed(evt);
            }
        });

        buttonGroup1.add(jRadioButton_encounter);
        jRadioButton_encounter.setText("就诊(Ecounter)");
        jRadioButton_encounter.setToolTipText("就诊(Ecounter)");
        jRadioButton_encounter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton_encounterActionPerformed(evt);
            }
        });

        buttonGroup1.add(jRadioButton_produreRequest);
        jRadioButton_produreRequest.setText("检查申请(ProdureRequest)");
        jRadioButton_produreRequest.setToolTipText("检查申请(ProdureRequest)");
        jRadioButton_produreRequest.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton_produreRequestActionPerformed(evt);
            }
        });

        buttonGroup1.add(jRadioButton_fhirBG);
        jRadioButton_fhirBG.setText("检查报告(FHIR文档)");
        jRadioButton_fhirBG.setToolTipText("检查报告(FHIR文档)");
        jRadioButton_fhirBG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton_fhirBGActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(136, 136, 136)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jRadioButton_patient, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jRadioButton_produreRequest, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jRadioButton_encounter, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jRadioButton_fhirBG, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap(95, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(78, Short.MAX_VALUE)
                .addComponent(jRadioButton_patient)
                .addGap(18, 18, 18)
                .addComponent(jRadioButton_encounter)
                .addGap(18, 18, 18)
                .addComponent(jRadioButton_produreRequest)
                .addGap(18, 18, 18)
                .addComponent(jRadioButton_fhirBG)
                .addGap(64, 64, 64))
        );

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void jRadioButton_patientStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jRadioButton_patientStateChanged
     
    }//GEN-LAST:event_jRadioButton_patientStateChanged

    private void jRadioButton_patientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton_patientActionPerformed
        FhirPatientGui fhirPatientGui = new FhirPatientGui();
        fhirPatientGui.setVisible(true);
        // 显示患者界面:
    }//GEN-LAST:event_jRadioButton_patientActionPerformed

    private void jRadioButton_encounterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton_encounterActionPerformed
        FhirEncounterGui fhirEncounterGui = new FhirEncounterGui();
        fhirEncounterGui.setVisible(true);
        // 显示就诊界面:
    }//GEN-LAST:event_jRadioButton_encounterActionPerformed

    private void jRadioButton_produreRequestActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton_produreRequestActionPerformed
        FhirProcedureRequestGui fhirProcedureRequestGui = new FhirProcedureRequestGui();
        fhirProcedureRequestGui.setVisible(true);
        // 显示检查申请界面:
    }//GEN-LAST:event_jRadioButton_produreRequestActionPerformed

    private void jRadioButton_fhirBGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton_fhirBGActionPerformed
        FhirJcbgGui FhirJcbgGui = new FhirJcbgGui();
        FhirJcbgGui.setVisible(true);
        // 显示检查报告界面:
    }//GEN-LAST:event_jRadioButton_fhirBGActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FhirMainGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FhirMainGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FhirMainGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FhirMainGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FhirMainGui().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JRadioButton jRadioButton_encounter;
    private javax.swing.JRadioButton jRadioButton_fhirBG;
    private javax.swing.JRadioButton jRadioButton_patient;
    private javax.swing.JRadioButton jRadioButton_produreRequest;
    // End of variables declaration//GEN-END:variables
}
